How to write Apex class